import scrapy

# from  import BaseItem
from commonresources.spider_items.base_item import BaseItem


class JiangSuGongGongZiYuanJiaoYiWangItem(BaseItem):
    """
    江苏省镇江市公共资源交易中心Item定义 :
    """
    announcement_type = scrapy.Field()
    construction_type = scrapy.Field()  # 交易分类
    info_type = scrapy.Field()  # 信息类型
    project_area = scrapy.Field()
    html = scrapy.Field()  # 公告html源码


class JiangSuZhengFuCaiGouWangItem(BaseItem):
    """
    江苏政府采购网Item定义 :
        BaseItem中定义的变量：
        origin_url = scrapy.Field() # 原始地址
        create_time = scrapy.Field() # 创建时间
        update_time = scrapy.Field() # 跟新时间
        announcement_title = scrapy.Field() #公告标题
        release_time = scrapy.Field()  # 公告发布时间
        is_parsed = scrapy.Field()  #是否已经提取过信息
        source_type = scrapy.Field() #属于哪个网站的信息
        province = scrapy.Field() #所属省份
        city = scrapy.Field() #所属城市

    """
    announcement_type = scrapy.Field()
    construction_type = scrapy.Field()  # 交易分类
    info_type = scrapy.Field()  # 信息类型
    project_area = scrapy.Field()
    html = scrapy.Field()  # 公告html源码


class JiangSuShengZhaoBiaoTouBiaoGongGongFuWuPingTaiItem(BaseItem):
    """
    江苏省招标投标公共服务平台Item定义 :
        BaseItem中定义的变量：
        origin_url = scrapy.Field() # 原始地址
        create_time = scrapy.Field() # 创建时间
        update_time = scrapy.Field() # 跟新时间
        announcement_title = scrapy.Field() #公告标题
        release_time = scrapy.Field()  # 公告发布时间
        is_parsed = scrapy.Field()  #是否已经提取过信息
        source_type = scrapy.Field() #属于哪个网站的信息
        province = scrapy.Field() #所属省份
        city = scrapy.Field() #所属城市

    """
    announcement_type = scrapy.Field()
    construction_type = scrapy.Field()  # 交易分类
    # info_type = scrapy.Field()  # 信息类型
    # project_area = scrapy.Field()
    html = scrapy.Field()  # 公告html源码
    first_url = scrapy.Field()  # 跳转前网页


class JiangSuShengGongLuShuiLuJianSheShiChangXinYongXinXiFuWuXiTongItem(BaseItem):
    """
    江苏省公路水路建设市场信用信息服务系统Item定义 :
        BaseItem中定义的变量：
        origin_url = scrapy.Field() # 原始地址
        create_time = scrapy.Field() # 创建时间
        update_time = scrapy.Field() # 跟新时间
        announcement_title = scrapy.Field() #公告标题
        release_time = scrapy.Field()  # 公告发布时间
        is_parsed = scrapy.Field()  #是否已经提取过信息
        source_type = scrapy.Field() #属于哪个网站的信息
        province = scrapy.Field() #所属省份
        city = scrapy.Field() #所属城市

    """
    announcement_type = scrapy.Field()
    construction_type = scrapy.Field()  # 交易分类
    info_type = scrapy.Field()  # 信息类型
    # project_area = scrapy.Field()
    html = scrapy.Field()  # 公告html源码
    first_url = scrapy.Field()  # 跳转前网页
